<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>智慧图书系统-图书详情</title>
    <link rel="stylesheet" type="text/css" href="/css/reset.css">
    <link rel="stylesheet" type="text/css" href="/css/master.css">
    <link rel="stylesheet" type="text/css" href="/css/main.css">
    <link rel="stylesheet" type="text/css" href="/css/self.css">
    <script type="text/javascript" src="/js/hosts.js"></script>
    <script type="text/javascript" src="/js/vue-2.5.16.js"></script>
    <script type="text/javascript" src="/js/axios-0.18.0.min.js"></script>
</head>
<body>
<div id="app" v-cloak>
    <div class="header_con">
        <div class="header">
            <div class="welcome fl">欢迎来到智慧图书系统!</div>
            <div class="fr">
                <div v-if="username" class="login_btn fl">
                    欢迎您：<em>[[ username ]]</em>
                    <span>|</span>
                    <a @click="logout">退出</a>
                </div>
                <div v-else class="login_btn fl">
                    <a href="/login.html">登录</a>
                    <span>|</span>
                    <a href="/register.html">注册</a>
                </div>
                <div class="user_link fl">
                    <span>|</span>
                    <a href="/user_center_info.html">用户中心</a>
                    <span>|</span>
                    <a href="/cart.html">我的收藏</a>
                    <span>|</span>
                    <a href="/user_center_order.html">我的借阅</a>
                </div>
            </div>
        </div>
    </div>

    <div class="search_bar clearfix">
        <a href="/index.html" class="logo fl"><img src="/images/logo.png"></a>
        <div class="search_wrap fl">
            <form method="get" action="/search.html" class="search_con">
                <input type="text" class="input_text fl" name="q" placeholder="搜索图书">
                <input type="submit" class="input_btn fr" name="" value="搜索">
            </form>
            <ul class="search_suggest fl">
                <li><a href="#">流浪地球</a></li>
                <li><a href="#">三体</a></li>
                <li><a href="#">python基础教程</a></li>
                <li><a href="#">java核心技术</a></li>
            </ul>
        </div>
    </div>

    <div class="navbar_con">
        <div class="navbar">
            <div class="sub_menu_con fl">
                <h1 class="fl" style="line-height: 15px;">图书分类</h1>
                <ul class="sub_menu">
                    {% for group in categories.values %}
                        <li>
                            <div class="level1">
                                {% for channel in group.channels %}
                                    <a href="{{ channel.url }}">{{ channel.name }}</a>
                                {% endfor %}
                            </div>
                            <div class="level2">
                                {% for cat2 in group.sub_cats %}
                                    <div class="list_group">
                                        <div class="group_name fl">{{cat2.name}} &gt;</div>
                                        <div class="group_detail fl">
                                            {% for cat3 in cat2.sub_cats %}
                                                <a href="/list.html?cat={{cat3.id}}">{{cat3.name}}</a>
                                            {% endfor %}
                                        </div>
                                    </div>
                                {% endfor %}
                            </div>
                        </li>
                    {% endfor %}
                </ul>
            </div>

            <ul class="navlist fl">
                <li><a href="">首页</a></li>
                <li class="interval">|</li>
                <li><a href="">更多分类</a></li>
                <li class="interval">|</li>
                <li><a href="">更多资讯</a></li>
            </ul>
        </div>
    </div>

    <div class="breadcrumb">
        <a href="{{ book.channel.url }}">{{ book.category3.parent.parent.name }}</a>
        <span>></span>
        <span>{{ book.category3.parent.name }}</span>
        <span>></span>
        <a href="/list.html?cat={{ book.category3.id }}">{{book.category3.name }}</a>
    </div>

    <div class="main-content clearfix">
        <div class="article fl clearfix">
            <!-- 缩略图部分 -->
            <div class="indent">
                <div class="subjectwrap clearfix">
                    <div class="subject clearfix">
                        <div id="mainpic" class="">
                            <a class="nbg" href="{{ book.image }}" title="{{ book.name }}">
                                <img src="{{ book.image }}" title="点击看大图" alt={{ book.name }} rel="v:photo" style="width: 135px;max-height: 200px;">
                            </a>
                        </div>
                        <div id="info" class="">
                            <span class="pl">作者:</span>&nbsp;{{ book.author }}<br><br>
                            <span class="pl">出版社:</span> {{ book.brand }}<br><br>
                            <span v-if="translator"><span class="pl">译者:</span>{{ book.translator }}<br><br></span>
                            <span class="pl">出版年:</span> {{ book.public_date }}<br><br>
                            <span class="pl">定价:</span> {{ book.purchase_price }}元<br><br>
                            <span class="pl">订阅价:</span> {{ book.price }}元<br><br>
                            <span class="pl">ISBN:</span> {{ book.isbn }}<br><br>
                        </div>
                    </div>
                    <div id="interest_sectl" class="">
                        <div class="rating_wrap clearbox" rel="v:rating">
                            <div class="rating_logo">评分</div>
                            <div class="rating_self clearfix" typeof="v:Rating">
                                <strong class="ll rating_num " property="v:average"> {{ book.scorce }} </strong>
                                <span property="v:best" content="10.0"></span>
                                <div class="rating_right ">
                                    <!-- <div class="ll bigstar45"></div> -->
                                    <div class="rating_sum">
                              <span class="">
                                <a href="javascript:void(0);" class="rating_people"><span property="v:votes">{{ book.comments }}</span>人评价</a>
                              </span>
                                    </div>
                                </div>
                            </div>
                            <span class="stars5 starstop" title="力荐">
                          5星
                        </span>
                            <div class="power" style="width:64px"></div>
                            <span class="rating_per">49.2%</span>
                            <br>
                            <span class="stars4 starstop" title="推荐">
                          4星
                        </span>
                            <div class="power" style="width:50px"></div>
                            <span class="rating_per">38.7%</span>
                            <br>
                            <span class="stars3 starstop" title="还行">
                          3星
                        </span>
                            <div class="power" style="width:14px"></div>
                            <span class="rating_per">11.0%</span>
                            <br>
                            <span class="stars2 starstop" title="较差">
                          2星
                        </span>
                            <div class="power" style="width:1px"></div>
                            <span class="rating_per">1.0%</span>
                            <br>
                            <span class="stars1 starstop" title="很差">
                          1星
                        </span>
                            <div class="power" style="width:0px"></div>
                            <span class="rating_per">0.3%</span>
                            <br>
                        </div>
                    </div>
                </div>
            </div>
            <div class="operate_btn">
                <a @click="add_cart" class="add_cart" id="add_cart">收藏图书</a>
            </div>
            <!-- 相关信息部分 -->
            <div class="related_info">
                <!-- 内容简介 -->
                <h2>
                    <span class="">内容简介</span>
                    &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
                </h2>
                <div class="indent" id="link-report">
                    <div class="">
                        <style type="text/css" media="screen">
                            .intro p {
                                text-indent: 2em;
                                word-break: normal;
                            }
                        </style>
                        <div class="intro">
                            {{ book.introduce | safe }}
                        </div>
                    </div>
                    <style>
                        #link-report .report {
                            text-align: right;
                            font-size: 12px;
                            visibility: hidden;
                        }
                        #link-report .report a {
                            color: #BBB;
                        }
                        #link-report .report a:hover {
                            color: #FFF;
                            background-color: #BBB;
                        }
                    </style>
                    <div class="report"><a rel="nofollow" href="javascript:void(0);">举报</a></div>
                </div>
                <!-- 作者简介 -->
                <h2>
                    <span class="">作者简介</span>
                    &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
                </h2>
                <div class="indent ">
                    <div class="">
                        <style type="text/css" media="screen">
                            .intro p {
                                text-indent: 2em;
                                word-break: normal;
                            }
                        </style>
                        <div class="intro">
                            {{ book.desc_author | safe }}
                        </div>
                    </div>
                </div>
                <!-- 目录 -->
                <h2>
                    <span class="">目录</span>
                    &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
                </h2>
                <div class="indent" id="dir_25862578_short">
                    {{ book.desc_atalog | safe }}
                </div>
                <!--读者评论-->
                <h2>
                    <span>读者评论</span>
                    &nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·&nbsp;·
                </h2>
                <div>
                    <ul class="judge_list_con">
                    <li class="judge_list fl" v-for="comment in comments">
                        <div class="user_info fl">
                            <b>[[comment.username]]</b>
                        </div>
                        <div class="judge_info fl">
                            <div :class="comment.score_class"></div>
                            <div class="judge_detail">[[comment.comment]]</div>
                        </div>
                    </li>
                </ul>

                </div>
            </div>
        </div>

        <div class="aside-ad fr clearfix">
            <div>
                <div class="new_goods">
                    <h3>热门排行</h3>
                    <ul>
                        <li>
                            <a href="#"><img src="http://47.101.191.40:8888/group1/M00/00/00/rBNwfFyeSiGAIIY4AACBSPuCJx43861385"></a>
                            <h4><a href="#">流浪地球</a></h4>
                            <div >刘慈欣</div>
                        </li>
                        <li>
                            <a href="#"><img src="http://47.101.191.40:8888/group1/M00/00/00/rBNwfFyc4MOAH_MAAACvd8y-oLw8986778"></a>
                            <h4><a href="#">三体</a></h4>
                            <div >刘慈欣</div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>


    <div class="footer">
        <div class="foot_link">
            <a href="#">关于我们</a>
            <span>|</span>
            <a href="#">联系我们</a>
            <span>|</span>
            <a href="#">招聘人才</a>
            <span>|</span>
            <a href="#">友情链接</a>
        </div>
        <p>CopyRight © 2019 山东智慧图书馆 All Rights Reserved</p>
        <p>电话：0531-****888    鲁ICP备*******8号</p>
    </div>
</div>
<script type="text/javascript">
    var price = {{sku.price}};
    var cat = {{ goods.category3.id }};
</script>
<script type="text/javascript" src="/js/detail.js"></script>

</body>
</html>